package cc.geguo.spring_a.anno;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 作者  Administrator
 * 时间  2017/4/13 18:42
 * 文件  Spring36_1
 * 描述
 */
@Component("obj3")
public class Obj3 {

	public void setObj2(Obj2 obj2) {
		this.obj2 = obj2;
	}

	public void ppObj3(){
		obj2.getObj1().show();
	}

	@Resource(name = "obj2")
	private Obj2 obj2;
}
